<template>
  <div>
    <h1>App</h1>
    <BsButton></BsButton>
  </div>
</template>
<script setup>
import { defineAsyncComponent } from 'vue';
import Loading from './components/Loading.vue';
import Error from './components/Error.vue';
const BsButton = defineAsyncComponent({
  loader: () => import('./components/BsButton.vue'),
  loadingComponent: Loading,
  // delay: 200,
  errorComponent: Error,
});

</script>


<style>
div {
  border: solid;
  padding: 20px
}
</style>